import Vue from 'vue'
import Router from 'vue-router'
import register from '@/components/register'
import upload from '@/components/upload'
import login from '@/components/login'
import money from '@/components/money'
import ewm from '@/components/ewm'
import rtmoney from '@/components/rtmoney'
import zfcg from '@/components/zfcg'
import order from '@/components/order'
import orderinfo from '@/components/orderinfo'
import ranking from '@/components/ranking'
import index from '@/components/index'


Vue.use(Router)

export default new Router({
    mode: 'history',
    routes: [
        {
            path: '/register',
            name: 'register',
            component: register
        },
        {
            path: '/upload',
            name: 'upload',
            component: upload
        },
        {
            path: '/login',
            name: 'login',
            component: login
        },
        {
            path: '/money',
            name: 'money',
            component: money
        },
        {
            path: '/rtmoney',
            name: 'rtmoney',
            component: rtmoney
        },
        {
            path: '/ewm',
            name: 'ewm',
            component: ewm
        },
        {
            path: '/palpay/pay',
            name: 'zfcg',
            component: zfcg
        },
        {
            path: '/order',
            name: 'order',
            component: order
        },
        {
            path: '/orderid',
            name: 'orderinfo',
            component: orderinfo
        },
        {
            path: '/ranking',
            name: 'ranking',
            component: ranking
        },
        {
            path: '/',
            name: 'index',
            component: index
        },
    ]
})
